package com.hy.java.utility.common;

/**
 * 有序三元组（左、中、右）
 * 
 * @author chiefeweight
 */
public class Triple<Type_left, Type_mid, Type_right> {
	private Type_left left;
	private Type_mid mid;
	private Type_right right;

	public Triple() {
	}

	public Triple(Type_left left, Type_mid mid, Type_right right) {
		this.left = left;
		this.mid = mid;
		this.right = right;
	}

	public Type_left getLeft() {
		return left;
	}

	public void setLeft(Type_left left) {
		this.left = left;
	}

	public Type_mid getMid() {
		return mid;
	}

	public void setMid(Type_mid mid) {
		this.mid = mid;
	}

	public Type_right getRight() {
		return right;
	}

	public void setRight(Type_right right) {
		this.right = right;
	}

	public static <Type_left, Type_mid, Type_right> Triple<Type_left, Type_mid, Type_right> createTriple(Type_left left, Type_mid mid, Type_right right) {
		return new Triple<Type_left, Type_mid, Type_right>(left, mid, right);
	}
}
